<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>编辑</title>
	<%--静态包含base标签，css，jQuery文件，--%>
	<%@include file="/view/common/head.jsp"%>
<style type="text/css">
	h1 {
		text-align: center;
		margin-top: 200px;
	}
	
	h1 a {
		color:red;
	}
	
	input {
		text-align: center;
	}
</style>
</head>
<body>
<%@include file="/view/common/back.jsp"%>
<%--${empty requestScope.clothes ? "add" : "update"}--%>
		<div id="header">
			<span class="wel_word">服装编辑</span>
			<%@include file="/view/common/manager_menu.jsp"%>
		</div>
		
		<div id="main">
			<form action="manage/clothesServlet" method="post">
				<input type="hidden" name="pageNo" value="${param.pageNo}">
				<input type="hidden" name="action" value="${empty requestScope.clothes ? "add" : "update"}">
				<input type="hidden" name="id" value="${ requestScope.clothes.id }" />
				<table>
					<tr>
						<td>名称</td>
						<td>价格</td>
						<td>类别</td>
						<td>销量</td>
						<td>库存</td>
<%--						<td>图片</td>--%>
						<td colspan="2">操作</td>
					</tr>		
					<tr>
						<td><input name="name" type="text" value="${requestScope.clothes.name}"/></td>
						<td><input name="price" type="text" value="${requestScope.clothes.price}"/></td>
						<td><input name="kind" type="text" value="${requestScope.clothes.kind}"/></td>
						<td><input name="sales" type="text" value="${requestScope.clothes.sales}"/></td>
						<td><input name="stock" type="text" value="${requestScope.clothes.stock}"/></td>
<%--						<td><input name="imgPath" type="text" value="${requestScope.clothes.imgPath}"/></td>--%>
						<td><input type="submit" value="提交"/></td>
					</tr>	
				</table>
			</form>

	
		</div>

<%--<%@include file="/view/common/page_nav.jsp"%>--%>
<%@include file="/view/common/footer.jsp"%>
</body>
</html>